256b6673f8e33ac400a07c021223c497cf849fb5,src/net/java/sip/communicator/plugin/otr/OtrActivator.java,OtrActivator,stop,#BundleContext#,427

Before Change


        // Unregister transformation layer.
        // start listening for newly register or removed protocol providers
        bundleContext.removeServiceListener(this);
        bundleContext.removeServiceListener(scOtrEngine);
        bundleContext.removeServiceListener(otrContactManager);

        ServiceReference[] protocolProviderRefs;

After Change


        // start listening for newly register or removed protocol providers
        bundleContext.removeServiceListener(this);

        if(scOtrEngine != null)
            bundleContext.removeServiceListener(scOtrEngine);

        if(otrContactManager != null)
            bundleContext.removeServiceListener(otrContactManager);